.promptGenerator {
  display: inline-block;
  position: relative;
}

.triggerButton {
  background: rgba(0, 255, 0, 0.1) !important;
  border: 1px solid rgba(0, 255, 0, 0.3) !important;
  color: #00ff00 !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  padding: 6px 12px !important;
  margin: 0 !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 10001 !important;
  position: relative !important;
  
  &:hover {
    background: rgba(0, 255, 0, 0.2) !important;
    color: #00cc00 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.2);
  }
  
  &:active {
    transform: translateY(0) !important;
  }
}

.expandedPanel {
  background: #1a1a1a;
  border: 1px solid rgba(0, 255, 0, 0.3);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 255, 0, 0.1);
  min-width: 480px;
  max-width: 600px;
  padding: 0;
  overflow: hidden;
  user-select: none;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border-bottom: 1px solid rgba(0, 255, 0, 0.2);
  
  h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
  }
}

.closeButton {
  background: none;
  border: none;
  font-size: 18px;
  color: #888;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  
  &:hover {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
  }
}

.inputSection {
  padding: 20px;
  border-bottom: 1px solid rgba(0, 255, 0, 0.2);
  background: #1a1a1a;
}

.textInput {
  width: 100%;
  padding: 12px;
  border: 2px solid rgba(0, 255, 0, 0.3);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.2s ease;
  font-family: inherit;
  background: #0a0a0a;
  color: #fff;
  
  &:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 0 3px rgba(0, 255, 0, 0.1);
  }
  
  &::placeholder {
    color: #666;
  }
}

.generateButton {
  width: 100%;
  margin-top: 12px;
  background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
  color: #0a0a0a;
  border: 1px solid rgba(0, 255, 0, 0.3);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  
  &:hover:not(:disabled) {
    background: linear-gradient(135deg, #00ff00 0%, #00dd00 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.3);
  }
  
  &:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: #333;
    color: #666;
  }
}

.error {
  padding: 12px 20px;
  background: rgba(255, 0, 0, 0.1);
  color: #ff6b6b;
  font-size: 14px;
  border-left: 4px solid #ff6b6b;
}

.resultSection {
  padding: 20px;
  background: #1a1a1a;
}

.promptGroup {
  margin-bottom: 16px;
  
  &:last-of-type {
    margin-bottom: 20px;
  }
  
  label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
  }
}

.promptText {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(0, 255, 0, 0.3);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  resize: vertical;
  background: #0a0a0a;
  color: #fff;
  transition: border-color 0.2s ease;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  
  &:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 0 2px rgba(0, 255, 0, 0.1);
  }
}

.insertButton {
  width: 100%;
  background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
  color: #0a0a0a;
  border: 1px solid rgba(0, 255, 0, 0.3);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: none;
  
  &:hover:not(:disabled) {
    background: linear-gradient(135deg, #00ff00 0%, #00dd00 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.3);
  }
  
  &:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: #333;
    color: #666;
  }
}

// 响应式设计
@media (max-width: 640px) {
  .expandedPanel {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    min-width: 90vw;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
  }
}

// 动画效果
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.expandedPanel {
  animation: slideIn 0.2s ease-out;
}

// 加载状态动画
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.generateButton:disabled {
  animation: pulse 1.5s ease-in-out infinite;
}